#pragma once
#include <comdef.h>
#include <Wbemidl.h>

#pragma comment(lib, "wbemuuid.lib")

extern "C" class _declspec(dllexport) CWmiInfo
{
public:
	CWmiInfo(void);
	~CWmiInfo(void);
	virtual BOOL Init();
	virtual BOOL GetInfo(CString szQuery, CString szName, CStringArray& szInfo);
	virtual BOOL GetInfo(CString szQuery, CStringArray& szProperty,CStringArray& szInfo);
	void Cleanup();
private:
	IWbemLocator *pLoc;
	IWbemServices *pSvc;

};

